package com.pets.springboot_petshop.service.impl;

import com.pets.springboot_petshop.mapper.ServiceMapper;
import com.pets.springboot_petshop.service.ServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/14 下午2:20 周一
 * @Description: 服务实现类
 */
@Service
public class ServiceServiceImpl implements ServiceService {
    @Autowired
    private ServiceMapper serviceMapper;

    @Override
    public com.pets.springboot_petshop.entity.Service selectService(int id) {
        return serviceMapper.selectService(id);
    }

    @Override
    public List<com.pets.springboot_petshop.entity.Service> selectPettypeName(String pettype_name) {
        return serviceMapper.selectPettypeName(pettype_name);
    }


    @Override
    public List<com.pets.springboot_petshop.entity.Service> selectServicename(String name) {
        return serviceMapper.selectServicename(name);
    }

    @Override
    public com.pets.springboot_petshop.entity.Service selectname(String name) {
        return serviceMapper.selectname(name);
    }

    @Override
    public List<com.pets.springboot_petshop.entity.Service> findAll() {
        return serviceMapper.findAll();
    }

    @Override
    public int addService(com.pets.springboot_petshop.entity.Service service) {
        return serviceMapper.addService(service);
    }

    @Override
    public int deleteServiceById(int id) {
        return serviceMapper.deleteServiceById(id);
    }

    @Override
    public int updateServiceById(com.pets.springboot_petshop.entity.Service service) {
        return serviceMapper.updateServiceById(service);
    }
}
